package com.ms.game.slot.base;

import com.xpec.c4.game.datamanager.agent.money.CoinType;

public enum SlotBasicWaterModelType 
{
	//正式幣
	GET_POUR_STATE("getPourState","getTrialpourState","String"),
	GET_POUR_BASE("getPourBase","getTrialpourBase","BigDecimal"),
	GET_POUR_TOTAL("getPourTotal","getTrialpourTotal","BigDecimal"),
	GET_POUR_START("getPourStart","getTrialpourStart","BigDecimal"),
	
	GET_POUR_WATER_RANG("getWaterpool_range","getTrialwaterpool_range","String"),
	GET_POUR_FEEDBACK("getWaterpool_feedback","getTrialwaterpool_feedback","Integer"),
	
	SET_POUR_STATE("setPourState","setTrialpourState","String"),
	SET_POUR_BASE("setPourBase","setTrialpourBase","BigDecimal"),
	SET_POUR_TOTAL("setPourTotal","setTrialpourTotal","BigDecimal"),
	SET_POUR_START("setPourStart","setTrialpourStart","BigDecimal"),
	
	SET_POUR_WATER_RANG("setWaterpool_range","setTrialwaterpool_range","String"),
	SET_POUR_FEEDBACK("setWaterpool_feedback","setTrialwaterpool_feedback","Integer"),
	;
	
	private String formal;
	
	private String trial;
	
	private String valuetype;
	
	public String getValuetype() {
		return valuetype;
	}

	public String getFormalByGet() {
		return formal;
	}
	
	public String getTrialByGet() {
		return trial;
	}
	
	SlotBasicWaterModelType(String f , String t , String type)
	{
		this.formal = f;
		this.trial = t;
		this.valuetype =type;
	}
	
	/**
	 * 讀取欄位名稱
	 * @param type
	 * @param coin
	 * @return
	 */
	public static String getColName(SlotBasicWaterModelType type,CoinType coin)
	{
		return (coin.getId() == CoinType.GOLD.getId())? type.formal:type.trial;
	}
	
}
